<? $link = Yii::app()->request->getHostInfo().CHtml::normalizeUrl(array('validate', 
    'valid_code'=>$form->valid_code, 'username'=>$form->username));
?>

<p>Dear <?php echo $form->username?>,</p><br /><br />

<p>We have received your 'Password Forgotten' request!</p><br />

<p>Click here to <a href="<?=$link?>">change your password</a></p><br />

<p>If you cannot access the link above, you can paste the following address into your browser:</p>

<?=$link?>

<br /><br />
Have a good day,<br />
The <?php echo Yii::app()->name; ?> Team
